package com.zhang.mapper;

import com.zhang.domain.Department;
import com.zhang.domain.DepartmentVO;
import com.zhang.query.DepartmentQuery;

import java.util.List;

/**
 * @author zh
 * @create 2022-02-21 11:52
 */
public interface DepartmentMapper {
    //基础查询
    void save(DepartmentVO d);

    void update(DepartmentVO d);

    void delete(Long id);

    Department loadById(Long id);

    List<Department> loadAll();

    List<Department> queryData(DepartmentQuery query);

    Long queryEmpId(String managerName);

    Long queryDeptId(String parentName);

    //批量删除
    void dels(Long[] id);

    List<String> selAllMan();
}
